package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.util.EventObject;

public abstract class ActionAndFocusLostListener implements ActionListener, FocusListener {
	@Override
	public void actionPerformed(ActionEvent e) {
		onEvent(e);
	}
	
	@Override
	public void focusLost(FocusEvent e) {
		onEvent(e);
	}
	
	@Override
	public void focusGained(FocusEvent e) {
	}
	
	public abstract void onEvent(EventObject o);
}
